package com.sy.test.takenumberdemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.sy.test.takenumberdemo.ui.TakeNumberActivity;
import com.sy.test.takenumberdemo.utils.BaseFragmentActivity;

public class MainActivity extends BaseFragmentActivity {

    private Button take_btn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int getContentViewId() {
        return R.layout.activity_main;
    }

    @Override
    protected void init() {

        take_btn = findViewById(R.id.take_btn);
        take_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent  = new Intent(MainActivity.this,TakeNumberActivity.class);
                MainActivity.this.startActivity(intent);
            }
        });
    }

    @Override
    protected void initBundleData() {

    }
}
